package com.qfedu.hotelssm.service.intf;

import com.qfedu.hotelssm.entity.Profit;
import com.qfedu.hotelssm.vo.PageBean;
import com.qfedu.hotelssm.vo.R;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface ProfitService {
    //新增
    R save(Profit profit);
    //删除
    R delete(int id);
    //更新
    R update(Profit profit);
    //分页查询
    PageBean selectPage(String profit, int page, int limit);
    //批量删除
    R deleteByIds(int[] ids);
    //导出
    List<Profit> download();
    //导入
    R upload(MultipartFile file) throws IOException;
}
